<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			
			
			function foo(e) {
				console.log(e);
				console.log(e.button); // 0  左键  1 中间滚轮个  2 右键
				console.log(e.clientX+"，"+e.clientY); // 页面中的坐标 
			}
			
			document.onmousedown = foo;
			
			
		</script>
		
		
	</body>
</html>